package com.cjj.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("post_comment")
@Accessors(chain = true)
public class PostComment implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;
    
    @TableField("post_id")
    private Long postId;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("parent_id")
    private Long parentId;
    
    @TableField("reply_to_user_id")
    private Long replyToUserId;
    
    @TableField("content")
    private String content;
    
    @TableField("like_count")
    private Integer likeCount;
    
    @TableField("status")
    private String status;
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    private LocalDateTime updateTime;
}